package data.obj;

public class Penalty implements Comparable<Penalty>


{
	int penalty;
	int round;
	


	public Penalty(int penalty, int round)
    {
	    super();
	    this.penalty = penalty;
	    this.round = round;
    }


	@Override
    public int compareTo(Penalty o)
    {
	    if(o.penalty>this.penalty)
	    	return -1;
	    if(o.penalty<this.penalty)
	    	return 1;
	    return 0;
    }


	@Override
    public String toString()
    {
	    return "Penalty [penalty=" + penalty + ", round=" + round + "]";
    }
	
}
